OTP\Handler\Forms\NinjaFormAjaxForm A

Total Complexity 55
Dependencies 7
Dependents 0
Total lines 314
Lines of code 214
Logical lines of code 123
Comment lines 0
Methods 21
Properties 0

Methods 21

Method Rating Maintainability Complexity Lines of code
_handle_nj_ajax_form_submit()
S
59 6 13
_add_button()
S
51 4 31
handleForm()
S
57 4 15
handleFormOptions()
S
58 4 14
enqueue_nj_form_script()
S
56 3 17
parseFormDetails()
S
57 3 16
__construct()
S
57 2 16
checkIfOtpVerificationStarted()
S
65 3 8
_send_nj_ajax_otp_to_phone()
S
64 3 9
_send_nj_ajax_otp_to_email()
S
64 3 9
getPhoneNumberSelector()
S
70 3 6
routeData()
S
66 3 8
processEmail()
S
67 2 7
processPhone()
S
67 2 7
processOTPEntered()
S
63 2 10
setSessionAndStartOTPVerification()
S
66 2 8
_send_otp_nj_ajax_verify()
S
69 2 7
handle_failed_verification()
S
80 1 3
handle_post_verification()
S
80 1 3
unsetOTPSessionVariables()
S
79 1 3
getFieldId()
S
74 1 4